from Base.baseContainer import GlobalManager
from Base.baseLogger import Logger


logger = Logger('apm_test.py').getLogger()
gm = GlobalManager()

def test_Authorization(self):
    Authorization = 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0eXBlIjoidXNlciIsImlkIjoicm9vdCIsIm5hbWUiOiLotoXnuqfnrqHnkIblkZgiLCJjb25zdW1lciI6IkJJVC1NU0EiLCJ0ZW5hbnRJZCI6ImFkbWluIiwic2VjcmV0X2lkIjoiOUJCQUM2MERBMEYwNEQxOEIxNDgzQzI4Njk1MDg2N0YiLCJpc3MiOiJCSVQtTVNBIiwiaWF0IjoxNjU2MjM0NDU4LCJuYmYiOjE2NTYyMzQ0NTgsImV4cCI6MTY1NjI0MTk1OH0.n3g9bWCjc-13RswkqfqnDaVADwtIX8qHaCaUBbsCZfg'
    gm.set_value('Authorization', Authorization)
    cooke = gm.get_value('Authorization')
    assert cooke != None, "【断言】：Authorization新增成功{}".format(cooke)
    logger.info("【断言】：Authorization新增成功：{}".format(cooke))